package weka.gui.aitoom;

import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.border.TitledBorder;
import javax.swing.JComboBox;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import java.awt.GridLayout;
import javax.swing.GroupLayout;
import javax.swing.GroupLayout.Alignment;

import weka.core.Instances;
import weka.gui.aitoom.Aitoom.ExplorerPanel;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class StaffResolutionPanel extends JPanel implements ExplorerPanel {
	private Aitoom explorer;
	private Instances instance;

	/**
	 * Create the panel.
	 */
	public StaffResolutionPanel() {
		setLayout(null);
		
		JPanel panel_3 = new JPanel();
		panel_3.setBounds(10, 11, 443, 477);
		add(panel_3);
		panel_3.setLayout(null);
		
		JButton btnNewButton = new JButton("Search");
		btnNewButton.setBounds(227, 429, 203, 23);
		panel_3.add(btnNewButton);
		
		JComboBox comboBox = new JComboBox();
		comboBox.setModel(new DefaultComboBoxModel(new String[] {"{Roles}"}));
		comboBox.setBounds(204, 27, 226, 20);
		panel_3.add(comboBox);
		
		JComboBox comboBox_1 = new JComboBox();
		comboBox_1.setModel(new DefaultComboBoxModel(new String[] {"{Resources}"}));
		comboBox_1.setBounds(204, 71, 226, 20);
		panel_3.add(comboBox_1);
		
		JComboBox comboBox_2 = new JComboBox();
		comboBox_2.setModel(new DefaultComboBoxModel(new String[] {"{Resource}"}));
		comboBox_2.setBounds(207, 117, 112, 20);
		panel_3.add(comboBox_2);
		
		JComboBox comboBox_3 = new JComboBox();
		comboBox_3.setModel(new DefaultComboBoxModel(new String[] {"{Activity}"}));
		comboBox_3.setBounds(329, 117, 100, 20);
		panel_3.add(comboBox_3);
		
		JRadioButton rdbtnSearchCandidatesFor = new JRadioButton("Search Candidates for a Role");
		rdbtnSearchCandidatesFor.setBounds(17, 26, 177, 23);
		panel_3.add(rdbtnSearchCandidatesFor);
		
		JRadioButton rdbtnSearchPossibleRoles = new JRadioButton("Search possible Roles");
		rdbtnSearchPossibleRoles.setBounds(18, 70, 163, 23);
		panel_3.add(rdbtnSearchPossibleRoles);
		
		JRadioButton rdbtnCheckAssignment = new JRadioButton("Check assignment");
		rdbtnCheckAssignment.setBounds(17, 116, 164, 23);
		panel_3.add(rdbtnCheckAssignment);
		
		JPanel panel = new JPanel();
		panel.setBorder(new TitledBorder(null, "Results", TitledBorder.LEADING, TitledBorder.TOP, null, null));
		panel.setBounds(463, 11, 287, 477);
		add(panel);

	}

	@Override
	public void setExplorer(Aitoom parent) {
		this.explorer = parent;
	}

	@Override
	public Aitoom getExplorer() {
		return explorer;
	}

	@Override
	public void setInstances(Instances inst) {
		this.instance = inst;
	}

	@Override
	public String getTabTitle() {
		return "StaffResolution";
	}

	@Override
	public String getTabTitleToolTip() {
		return "Staff resolution tab";
	}
	private static class __Tmp {
		private static void __tmp() {
			  javax.swing.JPanel __wbp_panel = new javax.swing.JPanel();
		}
	}
}
